package com.yan.test;

public class BaseBean<M> extends Base<Object> {

	@SuppressWarnings("unchecked")
	public M setId(Integer id) {
		set("id", id);
		return (M) this;
	}

	@SuppressWarnings("unchecked")
	public M getId() {
		return (M) getObject(Integer.class, "id");
	}

	@SuppressWarnings("unchecked")
	public M setName(String name) {
		set("name", name);
		return (M) this;
	}

	@SuppressWarnings("unchecked")
	public M getName() {
		return (M) getObject(String.class, "name");
	}

}
